package com.wangfa.config;

import com.wangfa.config.impl.Back;
import com.wangfa.entity.MyPage;
import com.wangfa.entity.Student;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(value = "provider2",fallback = Back.class)//
public interface Api {

    @RequestMapping("student/list")
    MyPage<Student> getStudents();
}
